//
//  WeiboViewController.m
//  IntimateGift
//
//  Created by zh on 14/12/22.
//  Copyright (c) 2014年 蔡宏业. All rights reserved.
//

#import "WeiboViewController.h"
#import "UIColor+AddColor.h"


@interface WeiboViewController ()

@end

@implementation WeiboViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 64)];
    [self.view addSubview:view];
    [view setBackgroundColor:[UIColor ownColor]];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(self.view.bounds.size.width / 2 - self.view.bounds.size.width * 0.1, 20, 80, 40)];
    [view addSubview:label];
    label.text = @"微博登陆";
    label.textColor = [UIColor whiteColor];
    label.textAlignment = NSTextAlignmentCenter;
    [label release];
    
    UIButton *cancelButton = [UIButton buttonWithType:UIButtonTypeSystem];
    [view addSubview:cancelButton];
    cancelButton.frame = CGRectMake(5, 20, 60, 40);
    [cancelButton setTitle:@"取消" forState:UIControlStateNormal];
//    cancelButton.tintColor = [UIColor whiteColor];
    [cancelButton addTarget:self action:@selector(cancelButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
    
    [view release];
    // Do any additional setup after loading the view.
}

- (void)cancelButtonClicked:(UIButton *)button
{
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
